import pytest
from log import log_connect
from log import email
import os

if __name__ == '__main__':
    log_connect()
    pytest.main(['test_huhelp.py','-s','--alluredir=baogao','--clean-alluredir'])
    os.system('allure generate baogao -o reboothtml --clean')
    email(['rizhi.log','./reboothtml/index.html'])